Skip to content

[release/10.0] Add ERROR_NETNAME_DELETED to IsPathUnreachableError for Windows localhost removal#124869

Merged
jozkee merged 2 commits intorelease/10.0from
backport/pr-121569-to-release/10.0
Feb 26, 2026
Merged

[release/10.0] Add ERROR_NETNAME_DELETED to IsPathUnreachableError for Windows localhost removal#124869
jozkee merged 2 commits intorelease/10.0from
backport/pr-121569-to-release/10.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 25, 2026

Backport of #121569 to release/10.0

/cc @jozkee @copilot

Customer Impact

  • Customer reported
  • Found internally

This only affects ResolveLinkTarget(returnFinalTarget: true). Code first tries to open the final file via OpenSafeFileHandle as an optimized approach, and when that fails it checks IsPathUnreachableError to decide whether to fall back to manually traversal with DeviceIoControl. Since ERROR_NETNAME_DELETED was not being categorized as a path unreachable error, the fallback never happens and an IOException is thrown instead.

We don't have customer reports yet, but we expect them to come eventually, and this is technically a regression-from-last-release.

Regression

  • Yes
  • No

This is a regression caused by a Windows OS update that removed localhost support. The error started appearing in CI builds around October 2025.

Testing

The original PR #121569 was merged to main on November 13, 2025 and resolved the CI failures.

Risk

Low. The change adds a single error code constant (ERROR_NETNAME_DELETED = 0x40) and includes it in the existing IsPathUnreachableError pattern match alongside other similar network path error codes (ERROR_BAD_NETPATH, ERROR_BAD_NET_NAME, ERROR_NETWORK_ACCESS_DENIED, etc.)

Copilot AI and others added 2 commits February 25, 2026 19:11
Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
@jozkee

This comment was marked as off-topic.

This comment was marked as off-topic.

@jozkee jozkee added Servicing-consider Issue for next servicing release review area-System.IO and removed area-Interop-coreclr labels Feb 26, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

@rbhanda rbhanda added this to the 10.0.5 milestone Feb 26, 2026
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 26, 2026
@jozkee jozkee merged commit cbc7aa0 into release/10.0 Feb 26, 2026
98 of 103 checks passed
@jozkee jozkee deleted the backport/pr-121569-to-release/10.0 branch February 26, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.IO Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants